#!/bin/sh
#--------------
# Clean Core file & fdr file 3 days ago
#--------------
cd /oracle/app/siebel/siebsrvr/bin
find ./ -mtime +3  -name "core.*" -exec rm {} \;
find ./ -mtime +3  -name "T*.fdr" -exec rm {} \;

#---------------
# Convert the LDAP File
#---------------
cd /var/log
cp -p ldap.log  ldap`date +%Y%m%d`.log
> ldap.log
zip -m ldap`date +%Y%m%d`_log.zip ldap`date +%Y%m%d`.log
